package com.interview.ujiuye3;

import java.util.Arrays;

/**
 * Copyright (C), 2018-2020
 * FileName: Demo5
 * Author:   kongfanyu
 * Date:     2020/10/14 10:16
 */
public class Demo5 {
    public static void main(String[] args) {
        String [] data = {"A","B","C","D","E"};
        data = reverseData(data);
        System.out.println(Arrays.toString(data));
    }
    public static String[] reverseData(String[] data ){
        String [] temp = new String[data.length];
        for (int i=0; i<data.length; i++){
            temp[i] = data[data.length - 1 - i] ;
        }
        return temp;
    }
}
